package com.qingmi.farmer.ui.login;

import android.databinding.ObservableField;

import com.wjjun.basemvpvm.viewmodel.BaseViewModel;

/**
 * author Wjjun
 * Created 2018/3/6.
 */

public class LoginViewModel extends BaseViewModel {

    public final ObservableField<Boolean> isCanBack = new ObservableField<>(true);

    public final ObservableField<String> url = new ObservableField<>();

    public final ObservableField<String> account = new ObservableField<>();

    public final ObservableField<String> psw = new ObservableField<>();

    public final ObservableField<String> code = new ObservableField<>();

    //是否使用密码
    public final ObservableField<Boolean> isPwd = new ObservableField<>(false);

    //剩余倒计时
    public final ObservableField<Integer> leftTime = new ObservableField<>();

    public final ObservableField<String> timeText = new ObservableField<>();


    public void setLeftTimeText(int time, String text) {
        leftTime.set(time);
        timeText.set(text);
    }

}
